package edu.sctu.xuping.month05.day20150510;

/**
 * Created by user16 on 2015/5/10.
 */
public class TextFive {
    public int i;
    public int sum = 0;
    public int number;


    public TextFive(int number) {
        this.number = number;
    }

    public int getNumber() {
        for (i = 0; i < number; i++) {
            sum += i;
        }
        return sum;
    }

}
